{% if users %}
    <div class="menutab"><a href="/dailyreport/{{now|date:'n-j'}}">按日期搜索</a></div>
    <div class="menublank"></div>
    {% for member in m.members %}
        {% if member.user == visit%}
            <div class="menutab currenttab"><a href="/dailyreport/{{member.user.username}}">{{member.realname}}</a></div>
        {% else %}
            <div class="menutab"><a href="/dailyreport/{{member.user.username}}">{{member.realname}}</a></div>
        {% endif %}
    {% endfor %}
{% else %}
    <div class="menutab"><a href="/dailyreport/{{view_user.username}}">按人名搜索</a></div>
    <div class="menublank"></div>
    {% for d in dates %}
        {% if d|date:'n-j' == date|date:'n-j' %}
            <div class="menutab currenttab"><a href="/dailyreport/{{d|date:'n-j'}}">{{d|date:'n月j日'}}</a></div>
        {% else %}
            <div class="menutab"><a href="/dailyreport/{{d|date:'n-j'}}">{{d|date:'n月j日'}}</a></div>
        {% endif %}
    {% endfor%}
{% endif %}